<template>
  <div id="app">
    <nav class="tab-bar">
      <router-link to="/theIndex"
        ><i class="iconfont icon-shouye"></i><span>首页</span></router-link
      >
      <router-link to="/courseList"
        ><i class="iconfont icon-liebiao"></i><span>课程列表</span></router-link
      >
      <router-link to="/myCourse"
        ><i class="iconfont icon-xueshimao"></i
        ><span>我的课程</span></router-link
      >
      <router-link to="/userInfo"
        ><i class="iconfont icon-kecheng"></i><span>我的</span></router-link
      >
    </nav>
    <router-view />
  </div>
</template>

<style>
.tab-bar {
  width: 100%;
  height: 1rem;
  position: fixed;
  z-index: 99;
  bottom: 0;
  left: 0;
  font-size: 0.22rem;
  display: flex;
  justify-content: space-around;
  align-items: center;
  background-color: #fff;
  box-shadow: 0px -0.1rem 0.24rem 0px rgba(0, 0, 0, 0.19);
}
.tab-bar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #333;
}
.tab-bar i {
  font-size: 0.31rem;
}
.tab-bar a.router-link-exact-active {
  color: #145aee;
}
</style>
